<template>
  <div id="app">
    <!-- <div class="text"> -->
    <!-- Vant测试 -->
    <!-- <van-button></van-button>就是全局Vant组件下的全局子组件,是一个.vue文件,全局可复用 -->
    <!-- <van-nav-bar
        fixed
        left-arrow
        @click-left="$router.back()"
        title="首页"
      ></van-nav-bar>
      <van-skeleton title avatar :row="3" />
      <van-button type="primary">主要按钮</van-button>
      <van-button type="info">信息按钮</van-button>
      <van-button type="default">默认按钮</van-button>
      <van-button type="warning">警告按钮</van-button>
      <van-button type="danger">危险按钮</van-button>
    </div> -->

    <!-- 一级路由挂载点(占位) -->
    <!-- <router-view /> -->
    <keep-alive>
      <router-view v-if="$route.meta.isKeepAlive"></router-view>
    </keep-alive>
    <!-- 如果没有配置 则meta.isKeepAlive===false，则组件渲染到这里并且不会缓存 -->
    <router-view v-if="!$route.meta.isKeepAlive"></router-view>
  </div>
</template>

<style lang="less">
</style>
